
package gui;

import java.awt.Color;
import java.awt.Rectangle;
import gui.CommitedFrame;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JButton;

public class CommitedFrame extends JFrame{
	private JPanel AreUsu = null;
	private JLabel jLabelQ = null;
	private JButton jButtonOk = null;
	
	
	
	public CommitedFrame() {
		super();
		initialize();
	}

	/**
	 * This method initializes AcademicFrame 
	 */
	private void initialize() {
		this.setSize(300, 200);
		this.setContentPane(Sureform());
		this.setTitle("Blocking User");			
	}

	private JPanel Sureform() {
		if (AreUsu == null) {
			jLabelQ = new JLabel();
			jLabelQ.setBounds(new Rectangle(61, 7, 216, 60));
			jLabelQ.setText("USER AS BEEN BLOCKED");
			AreUsu = new JPanel();
			AreUsu.setLayout(null);

			AreUsu.add(jLabelQ, null);
			AreUsu.add(getJButtonOk(), null);
			 


		}
		return AreUsu; 
	}

	/**
	 * This method initializes jButtonNo	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonOk() {
		if (jButtonOk == null) {
			jButtonOk = new JButton();
			jButtonOk.setBounds(new Rectangle(101, 87, 75, 48));
			jButtonOk.setText("Ok");
			jButtonOk.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					CommitedFrame.this.dispose();
				}
			});
		}
		return jButtonOk;
	}
	
}
